package stool.interpreter;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author Felix YF Dong
 * @Date 2021/5/16
 */
public class Main {

    public static void main(String[] args) {

        Context context = new Context();

        List<AbstractExpression> abstractExpressions = new ArrayList<>();
        abstractExpressions.add(new TerminalExpression());
        abstractExpressions.add(new NonterminalExpression());
        abstractExpressions.add(new TerminalExpression());
        abstractExpressions.add(new TerminalExpression());
        abstractExpressions.add(new TerminalExpression());
        abstractExpressions.add(new NonterminalExpression());

        abstractExpressions.forEach(abstractExpression -> abstractExpression.interpret(context));
    }
}
